﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BonsaiScrum.Bus;

namespace BonsaiScrum.Core.Command
{
    public class UpdateSprint : ICommand
    {
        public DateTime Start { get; private set; }
        public DateTime End { get; private set; }
        public string Description { get; private set; }
        public int ProjectId { get; private set; }
        public int CreatorId { get; private set; }

        public UpdateSprint(DateTime start, DateTime end, string desc, int project, int creator)
        {
            if (string.IsNullOrEmpty(desc))
                throw new ArgumentNullException("desc");

            Start = start;
            End = end;
            Description = desc;
            ProjectId = project;
            CreatorId = creator;
        }
    }
}